import type { IUseApi } from '@/types/apis';
import { InstanceController } from '@hdtd/utils';
import UserApi from './UserApi';

/**
 * 获取用户信息接口
 * @param config
 * @param apiConfig
 * @param axiosInstance
 * @returns
 */
export const useUserApi: IUseApi<typeof UserApi> = (config, apiConfig, axiosInstance) => {
  return InstanceController.getInstance(UserApi, [axiosInstance, apiConfig], config);
};
